package com.itheima.modifier;

public class Test1 {

    public static void main(String[] args) {

        //认识四种权限修饰符

        //同一个包中的其他类
        Father father = new Father();
        //father.privateMethod();   //报错
        father.defaultMethod();
        father.protectedMethod();
        father.publicMethod();
    }
}
